#include "Database.h"
#include "ParamManager.h"
#include "Pc.h"
#include <time.h>

#ifndef _PcManager
#define _PcManager


class PcManager {

public:
	Pc *head;
	Database *db;
	HANDLE hMutex;

	// Constructor
	PcManager(Database* /*db*/, HANDLE /*hMutex*/);

	// Deconstructor
	~PcManager();

	// load all available pcs
	bool loadall();
	Pc* load(int /*id*/);

	// add a new todo
	Pc* add(char* /*netbios*/);

	// get a pointer to a pc by the specified id
	Pc* get(int /*id*/);
	Pc* get(char* /*netbios*/);

	// del a todo by the specified id
	bool del(int /*id*/);
	bool del(char* /*netbios*/);

	// whether there are any active todos left
//	bool isActive();

	// returns a todo ready to be worked on
//	Pc* getReady();
};

#endif // _PcManager